<?php /* Smarty version 2.6.20, created on 2011-10-25 17:38:12
         compiled from _core/_include/module/guicontainersampleattribute.tpl */ ?>
function GuiContainerSampleAttribute() {
  
};

GuiContainerSampleAttribute.instance = function(prefix, sampleAttribute) {
  var gui = { name: document.getElementById(prefix + '_name_text'),
              remove: document.getElementById(prefix + '_remove_button'),
              addOption: document.getElementById(prefix + '_addOption_button'),
              options: []
            };
  for (var i = 0, il = sampleAttribute.options.length; i < il; i++) {
    gui.options[gui.options.length] = GuiContainerSampleAttribute._option(prefix + '_' + i);
  }
  return gui;
};

GuiContainerSampleAttribute._option = function(prefix) {
  return { name: document.getElementById(prefix + '_name_text'),
           remove: document.getElementById(prefix + '_remove_button')
         };
};